package com.qqbot.service.user;

import com.qqbot.exception.BusinessException;
import com.qqbot.model.user.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author fyq
 * @since 2023-03-02
 */
public interface UserService extends IService<User> {

    /**
     * 判断是否为主人账号(群组)
     *
     * @param bot
     * @param qq
     * @param groupNo
     * @return
     * @throws BusinessException
     */
    boolean isItMaster(String bot, String qq, String groupNo) throws BusinessException;

    /**
     * 判断是否为主人账号(个人)
     *
     * @param bot
     * @param qq
     * @return
     * @throws BusinessException
     */
    boolean isItMaster(String bot, String qq) throws BusinessException;
}
